﻿namespace OpenLightGroup.Common.ApplicationServices
{
    /// <summary>
    ///  Represents a piece of general information that needs to be logged.
    /// </summary>
    /// <remarks>
    /// Both constructors shown below are needed so that the WebEvent API 
    /// can see that this type should be handled as an GeneralEvent
    /// </remarks>    
    public sealed class InformationEvent : GeneralEvent
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="InformationEvent" /> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="eventSource">The event source.</param>
        /// <param name="eventDetailCode">The event detail code.</param>
        protected InformationEvent ( string message, object eventSource, int eventDetailCode )
        : base ( message, eventSource, 300000, eventDetailCode )
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="InformationEvent" /> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="eventSource">The event source.</param>
        protected InformationEvent ( string message, object eventSource )
        : base ( message, eventSource, 300000 )
        {
        }
    }
}